﻿<%@ Page Language="C#" MasterPageFile="~/education.master" AutoEventWireup="true" CodeFile="edutestquestions.aspx.cs" Inherits="edutestquestions" Title="Untitled Page" %>

<%@ Register Assembly="Infragistics2.WebUI.WebDataInput.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>

<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>

<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="EduContent" Runat="Server">


    <TABLE style="WIDTH: 100%; HEIGHT: 100%" __designer:mapid="6a5">
        <TBODY __designer:mapid="6e3">
            <TR __designer:mapid="6e4">
                <TD align=right __designer:mapid="6e5">
                    <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" 
                        Text="上传新的课程资料" />
                </TD>
            </TR>
            <tr __designer:mapid="6e7">
                <td align="left" __designer:mapid="6e8">
                    <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" DataKeyField="CourDocumentID" 
                DataSourceID="SqlDataSource1" Height="200px" Width="100%">
                        <bands>
                            <igtbl:UltraGridBand DataKeyField="CourDocumentID">
                                <addnewrow view="NotSet" visible="NotSet">
                                </addnewrow>
                                <Columns>
                                    <igtbl:TemplatedColumn Width="50px">
                                        <celltemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="Button2_Click1" 
                                        OnClientClick="return confirm('你确定要删除吗？将不可恢复!');">删除</asp:LinkButton>
                                        </celltemplate>
                                    </igtbl:TemplatedColumn>
                                    <igtbl:TemplatedColumn Width="50px">
                                        <celltemplate>
                                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                        NavigateUrl="<%# GetNavigateUrl(Container.DataItem) %>">查看文件</asp:HyperLink>
                                        </celltemplate>
                                        <HeaderTemplate>
                                        </HeaderTemplate>
                                        <header caption="">
                                            <rowlayoutcolumninfo originx="1" />
                                        </header>
                                        <footer>
                                            <rowlayoutcolumninfo originx="1" />
                                        </footer>
                                    </igtbl:TemplatedColumn>
                                    <igtbl:TemplatedColumn Width="50px">
                                        <celltemplate>
                                            <asp:HyperLink ID="HyperLink2" runat="server" 
                                        NavigateUrl="<%# GetNavigateUrlEdit(Container.DataItem,Container.DataItem) %>">编辑题库</asp:HyperLink>
                                        </celltemplate>
                                        <header caption="">
                                            <rowlayoutcolumninfo originx="2" />
                                        </header>
                                        <footer>
                                            <rowlayoutcolumninfo originx="2" />
                                        </footer>
                                    </igtbl:TemplatedColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="CourDocumentID" DataType="System.Int32" 
                                IsBound="True" Key="CourDocumentID" Hidden="True">
                                        <header caption="CourDocumentID">
                                            <rowlayoutcolumninfo originx="3" />
                                        </header>
                                        <footer>
                                            <rowlayoutcolumninfo originx="3" />
                                        </footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="课程资料" IsBound="True" Key="课程资料" 
                                Width="200px">
                                        <header caption="课程资料">
                                            <rowlayoutcolumninfo originx="4" />
                                        </header>
                                        <footer>
                                            <rowlayoutcolumninfo originx="4" />
                                        </footer>
                                    </igtbl:UltraGridColumn>
                                </Columns>
                                <rowedittemplate>
                                    <br>
                                    <p align="center">
                                        <input id="igtbl_reOkBtn" onclick="igtbl_gRowEditButtonClick(event);" 
                                    style="width:50px;" type="button" value="OK"> &nbsp;
                                        <input id="igtbl_reCancelBtn" onclick="igtbl_gRowEditButtonClick(event);" 
                                    style="width:50px;" type="button" value="Cancel"> </input> </input>
                                    </p>
                                    </br>
                                </rowedittemplate>
                                <rowtemplatestyle backcolor="Window" bordercolor="Window" borderstyle="Ridge">
                                    <borderdetails widthbottom="3px" widthleft="3px" widthright="3px" 
                                widthtop="3px" />
                                </rowtemplatestyle>
                            </igtbl:UltraGridBand>
                        </bands>
                        <displaylayout allowcolsizingdefault="Free" allowcolumnmovingdefault="OnServer" allowsortingdefault="OnClient" 
                    allowupdatedefault="Yes" bordercollapsedefault="Separate" 
                    headerclickactiondefault="SortMulti" name="UltraWebGrid1" 
                    rowheightdefault="20px" rowselectorsdefault="No" 
                    selecttyperowdefault="Extended" stationarymargins="Header" 
                    stationarymarginsoutlookgroupby="True" tablelayout="Fixed" version="4.00" 
                    colwidthdefault="" rowsizingdefault="NotSet" scrollbarview="Vertical">
                            <groupbybox>
                                <boxstyle backcolor="ActiveBorder" bordercolor="Window">
                                </boxstyle>
                            </groupbybox>
                            <groupbyrowstyledefault backcolor="Control" bordercolor="Window">
                            </groupbyrowstyledefault>
                            <activationobject bordercolor="" borderwidth="">
                            </activationobject>
                            <footerstyledefault backcolor="LightGray" borderstyle="Solid" borderwidth="1px">
                                <borderdetails colorleft="White" colortop="White" widthleft="1px" 
                            widthtop="1px" />
                            </footerstyledefault>
                            <rowstyledefault backcolor="Window" bordercolor="Silver" borderstyle="Solid" 
                        borderwidth="1px" font-names="Microsoft Sans Serif" font-size="8.25pt">
                                <borderdetails colorleft="Window" colortop="Window" />
                                <padding left="3px" />
                            </rowstyledefault>
                            <filteroptionsdefault>
                                <filteroperanddropdownstyle backcolor="White" bordercolor="Silver" 
                            borderstyle="Solid" borderwidth="1px" customrules="overflow:auto;" 
                            font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px">
                                    <padding left="2px" />
                                </filteroperanddropdownstyle>
                                <filterhighlightrowstyle backcolor="#151C55" forecolor="White">
                                </filterhighlightrowstyle>
                                <filterdropdownstyle backcolor="White" bordercolor="Silver" borderstyle="Solid" 
                            borderwidth="1px" customrules="overflow:auto;" 
                            font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px" height="300px" 
                            width="200px">
                                    <padding left="2px" />
                                </filterdropdownstyle>
                            </filteroptionsdefault>
                            <headerstyledefault backcolor="LightGray" borderstyle="Solid" 
                        horizontalalign="Left">
                                <borderdetails colorleft="White" colortop="White" widthleft="1px" 
                            widthtop="1px" />
                            </headerstyledefault>
                            <editcellstyledefault borderstyle="None" borderwidth="0px">
                            </editcellstyledefault>
                            <framestyle backcolor="Window" bordercolor="InactiveCaption" 
                        borderstyle="Solid" borderwidth="1px" font-names="Microsoft Sans Serif" 
                        font-size="8.25pt" height="200px" width="100%">
                            </framestyle>
                            <pager allowpaging="True" minimumpagesfordisplay="2">
                                <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                <borderdetails colorleft="White" colortop="White" widthleft="1px" 
                            widthtop="1px" />
                                </PagerStyle>
                            </pager>
                            <addnewbox hidden="False">
                                <boxstyle backcolor="Window" bordercolor="InactiveCaption" borderstyle="Solid" 
                            borderwidth="1px">
                                    <borderdetails colorleft="White" colortop="White" widthleft="1px" 
                                widthtop="1px" />
                                </boxstyle>
                            </addnewbox>
                        </displaylayout>
                    </igtbl:UltraWebGrid>
                </td>
            </tr>
            <tr __designer:mapid="6ea">
                <td __designer:mapid="6eb">
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:smsConnectionString %>" 
                SelectCommand="SELECT CourDocumentID, CourDocumentName AS 课程资料 FROM CourseDocumentInfo WHERE (IsDeleted &lt;&gt; 1) ORDER BY CourDocumentUploadDate DESC">
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr __designer:mapid="6ed">
                <td align="right" __designer:mapid="6ee">
                    &nbsp;</td>
            </tr>
        </TBODY>
    </TABLE>
</asp:Content>

